Skip to main content

Importing Infrastructure

It's recommended for more complex projects to import via Infrastructure As Code

We'll cover how to create a collection and import directly into Shade, for local testing.

CloudFormation & SAM

You can follow along with a quick start project by cloning the following repository. The repository contains a Lambda, Dynamo table and Rest API.

git clone https://github.com/HarryMcGoldrick/ShadeTSTemplate 

1. Setup

Since the above project is using typescript we will need to first install the dependencies then build to Javascript.

npm install && npm run build

2. Importing

Create a new collection and then click the Import button.

Select the template.yaml file and continue through the import wizard.

3. Testing

Once you have successfully imported the infrastructure you can test by either invoking the Lambda or the via the API Gateway.


CDK

To import a CDK project, we can use the cdk synth command to create the template.

Then select the {your-stack-name}.template.json file in the import wizard.